HOW DOES A BMS PROTECT A BATTERY PACK