HOW TO DESIGN A CUSTOM BMS FOR LI ION BATTERY