Holographic gratings in hybrid sol-gel films