Grating evolution in frequency-doubling fibers.