Analytical Solution of the Magnetic Field in Permanent-Magnet Motors Taking Into Account Slotting Effect: No-Load Vector Potential and Flux Density Calculation