Intensification of the freeze drying process by the control of both freezing and primary drying steps