Electrochromism of novel triphenylamine-containing polyamide polymers