Quantitative determination of active pharmaceutical ingredients, related substances and organic and polymorphic impurities in pharmaceutical formulation by liquid chromatography and near infrared spectroscopy