Performance improvement of synchronous generators through accurate modelling and integration of power electronics