Analysis of optical propagation in thick holographic gratings