Simulation of electron-scattering properties of diamond membranes in X-ray mask fabrication