Why do we need to demagnetize batteries when producing them