HOW DOES BMS WORK IN LITHIUM BATTERIES