Design and implementation of an extended Kalman filter for the state estimation of a permanent magnet synchronous motor | Synapse