Analysis of the characteristics of a synchronous generator by means of air gap flux