Refractive index profiling of graded index optical fibers