Optofluidic lock-in spectroscopy on a chip