Refractive index sensing with localized plasmonic resonances: Theoretical description and experimental verification