Battery Management System (BMS) simulation environment for electric vehicles