A New Method for the Analytical Determination of the Complex Relative Permeance Function in Slotted Electrical Machines