Novel Technique for Measuring the Index Profile of Optical Fibers