How does the arrangement of cells in a battery affect the voltage supplied and the energy capacity?