wavelength-shift detection