how to connect bms with lithium ion battery