Porous solids for adsorption and separation of gas and vapor mixtures