why do batteries corrode