Text this: A theory of excitation of a planar semiconductor optical waveguide using a diffraction grating