Output current of batteries connected in series and parallel