Lensless coherent imaging by sampling of the optical field with digital micromirror device