How to connect a group of lead-acid batteries to ensure stability