Winding Function Modeling of Synchronous Reluctance Machines