Mathematical modeling and analysis of flux-switching permanent magnet machine