Direct Torque Control of IPMSMs by Nonlinear Optimal Control Technique