Relaxation processes in liquid-crystalline azobenzene polymers for optical nanowriting