Pulse-periodic generation of supershort avalanche electron beams and X-ray emission