On the Modeling, Analysis and Development of PMSM: For Traction and Charging Application