An Embedded Strategy for Online Identification of PMSM Parameters and Sensorless Control