Analytical Determination of Slot Leakage Field and Inductances of Electric Machines With Double-Layer Windings and Semiclosed Slots