Design of a surface plasmon resonance sensor based on grating connection