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