Impurity investigations by phases of drug and product development