the reagent-coated grating coupling light in or out of the waveguide