Diffraction result with the tolerance interval 500 nm and the grating period variance 500 nm, and N = 1000.