Using a light-emitting diode as a high-speed, wavelength selective photodetector