Feedforward Flux-Weakening Control of Surface-Mounted Permanent-Magnet Synchronous Motors Accounting for Resistive Voltage Drop