Measurement of the refractive index profile of waveguides using defocusing microscopy.