Influence of Freezing Parameters on the Formation of Internal Porous Structure and Its Impact on Freeze-Drying Kinetics