Development of electrochemical methods for the determination of pharmaceutical impurities