Electric energy systems theory