On the inscription of period and half-period surface relief gratings in azobenzene-functionalized polymers.