Novel soluble polyazomethines with pendant carbazole and triphenylamine derivatives: preparation, characterization, and optical, electrochemical and electrochromic properties