Identification of Parameters and States in PMSMs