Synthesis and characterization of triarylamine‐based polyimides for electrochromic and optoelectronic conversion behaviors