Contact printing of Bragg gratings in optical fibers: rigorous diffraction analysis.