A battery of e.m.f. 12V drives a steady current of 0.50A through a resistor for 40s. The potential difference across the resistor is 11V. The rest of the e.m.f. is used up inside the battery itself. How much energy is changed to thermal energy inside the battery?