Flux-Weakening Control for Permanent-Magnet Synchronous Motors Based on Z-Source Inverters