a battery is used to make electricity