Holographic grating recording in azobenzene functionalized polymers