Porous materials with controlled porosity by