Creation of second-order nonlinear optical effects by photoisomerization of polar azo dyes in polymeric films: theoretical study of steady-state and transient properties