An azo-isomerization-induced Freedericksz transition of a nematic liquid crystal