Optofluidic refractive index sensor based on partial reflection