On-line product quality and process failure monitoring in freeze-drying of pharmaceutical products