Depth profile of optically recorded patterns in light-sensitive liquid-crystal elastomers