Experimental determination of intensity distribution across a source with a grating interferometer