A hardware-in-the-loop test rig for development of electric vehicle battery identification and state estimation algorithms. (2018)