Analytical Computation of the Electromagnetic Torque in Doubly Slotted Synchronous Machines with Distributed Windings