Diffraction of light by a periodically modulated dielectric half-space