Computational Analysis of Air Gap Field in Electrical Machines by Fourier Coefficient Matrices