State the energy transformation that take place during x-ray production in an x-ray tube.