Lead-acid batteries with different capacities connected in series