Electrical and Magnetic Model Coupling of Permanent Magnet Machines Based on the Harmonic Analysis