Electric Energy Systems Theory