Analytical modelling of harmonics in an exciterless synchronous generator