Analytical Calculation of the Electromagnetic Torque in Synchronous Machines Considering Slotting, Saliency and Saturation Effects