Semiconductor lasers with the light output through the diffraction grating on the surface of the waveguide layer