Synthesis and purification of impurities and pre-validation of an analytical method by the API