Fabrication of diffraction X-ray elements