Analytical Calculation of Complex Relative Permeance Function and Magnetic Field in Slotted Permanent Magnet Synchronous Machines