detecting a single photon using a light detector