Refractive index sensor for liquids and solids using dielectric multilayer films deposited on optical fiber end surface