Synthesis and Characterization of Electrochromic Polyamides with Well‐Defined Molecular Structures and Redox Properties