Freeze-drying of porous frozen material with initial porosity