Principles of Modeling, Simulations, and Control for Electric Energy Systems