Refractive-index profiling of planar gradient-index waveguides by phase-measuring microinterferometry