In-line optimization and control of an industrial freeze-drying process for pharmaceuticals