Particle swarm optimization of an extended Kalman filter for speed and rotor flux estimation of an induction motor drive