A SystemC-AMS Framework for the Design and Simulation of Energy Management in Electric Vehicles