Principles of series and parallel connection of lead-acid batteries