Synthesis and evaluation of photoluminescent and electrochemical properties of new aromatic polyamides and polyimides with a kink 1,2‐phenylenediamine moiety