Application of Near-Infrared Spectroscopy to statistical control in freeze-drying processes