Core Losses and Torque Ripple in IPM Machines: Dedicated Modeling and Design Trade Off