Sampling theorem application to s.a.w. diffraction simulation