How a LiFePO4 BMS balances cells