A Proposed Software Framework Aimed at Energy-Efficient Autonomous Driving of Electric Vehicles