using a Bragg gratings