Dynamic holographic gratings