Fiber Bragg gratings for dispersion compensation in optical communication systems