Correlation between polymer architecture and sub-glass-transition-temperature light-induced molecular movement in azo-polyimide polymers: influence on linear and second- and third-order nonlinear optical processes