Illustration of quantum complementarity using single photons interfering on a grating