Consider a photon of continuous X-ray coming from a Coolidge tube. Its energy comes from