Stability analysis of the synchronous machine under unbalance and loss of excitation conditions