Online parameter identification of synchronous machines using Kalman filter and recursive least squares