Energy systems in transition