Enhanced Current Tracking in Permanent Magnet Synchronous Motors via Optimal Control Strategies