Text this: Design and PIL test of extended Kalman filter for PMSM field oriented control