Modeling and control of a 4-pole/8-pole induction motor for smooth torque production during electronic pole changing