High sensitivity guided-mode-resonance optical sensor employing phase detection