Analytical calculation of the magnetic field distribution in a flux-modulated permanent-magnet brushless motor