Novel characterization of rotor magnet demagnetization in five-phase surface mounted permanent magnet machines