Multi-phase Synchronous Motors: POG Modeling and Optimal Shaping of the Rotor Flux