Stator-Flux-Oriented Control of Synchronous Motors: Design and Implementation