Does a battery produce dc or ac