X-Ray Radiation Generation in Heat Engines Using Electron Cooling