Density of porous solids