A compact differential refractive index sensor based on localized surface plasmons