CdSe/ZnS quantum dots as sensors for the local refractive index.