How to choose a battery pack for integrated charging and discharging