Synthesis and characterization of alternating copolymers containing triphenylamine as hole‐transporting units