Sensorless Control of Switched-Flux Permanent Magnet Machines