Optical diffraction simulation of a digital micromirror device