Application of quality by design and near infrared spectroscopy in manufacturing and control of freeze-dried drug products