Electrosynthesis and characterization of an electrochromic material containing biscarbazole–oxadiazole units and its application in an electrochromic device