Simulation of steady state characteristics and loss of synchronism phenomena of a synchronous machine taking into account magnetic saturation effect