Sliding Mode Based Maximum Torque per Ampere and Maximum Power per Ampere Control of Interior-Mounted Permanent Magnet Synchronous Motors