Poly(amic acid)s vs. polyimides with π-conjugated –N N- units: Cis-trans isomerization reaction and kinetics of thermal imidization