Demagnetization investigation of a partitioned rotor flux switching machine with hybrid permanent magnet