Fiber Bragg gratings for atom chips