Optical cavity-based biosensor utilizing differential detection