Electron scattering of diamond membranes in x-ray mask fabrication