Identification, synthesis and characterization of related substances (Impurities) of active pharmaceutical ingredients