X-ray generation by the Smith-Purcell effect.