Two-dimensional coupled mode equation for grating waveguide excitation by a focused beam