Photoisomerization and thermal isomerization behavior of azobenzene derivatives in liquid-crystalline polymer matrixes