Dynamics recording of holographic gratings in a photochromic crystal of calcium fluoride