Coupled planar silver nanoparticle arrays as refractive index sensors