Quantitative investigation of the refractive-index modulation within the core of a fiber Bragg grating