Spatial coherence measurement via a digital micromirror device based spatiotemporal light modulation.