Investigation in Determining the Relative Position between Stator and Rotor of a PMSM in Electromagnetic Field Calculation