Azobenzene polymers for nano-writing: structural properties, relaxation processes and dynamic heterogeneities.