Electric Systems Dynamics and Stability with Artificial Intelligence Applications