Quantitative phase imaging of fiber Bragg gratings