Electromagnetic soft transition: A method for programming transitions in electronically controlled induction motor drives