Text this: Optimization of a Double-Layer Flared-Shaped IPMSM for Torque Ripple Reduction