Analysis of a Flux Reversal Machine With Quasi-Halbach Magnets in Stator Slot Opening