Writing bragg gratings in multicore fibers