Implementation and testing of a compact and high-resolution sensing device based on grating-coupled surface plasmon resonance with polarization modulation