The application of Fourier analysis of the azimuthal field distribution to a study of equilibria and instabilities in a toroidal pinch discharge