Infrastructure Design for Electric and Autonomous Vehicles