Energy-efficient Speed Planner for Connected and Automated Electric Vehicles on Sloped Roads