Space phasor theory and control of multiphase machines through their decoupling into equivalent three-phase machines