EV battery management system