Characterization of porous solids