Hy-Sim: a Modular Simulator for Hybrid-Electric Vehicles