Applications for fiber Bragg gratings in communications