Batteries with different capacities connected in parallel