Energy-Aware Coordination Of Automated Vehicles