HOW DOES A BMS MEASURE A BATTERY PACK