Laser-electron generator for X-ray applications in science and technology