Bifurcation analysis and chaos detection in power systems