Refractive index measurement of optical waveguides using modified end-fire coupling method.