Synthesis and characterization of novel donor–acceptor type electrochromic polymers containing diketopyrrolopyrrole as an acceptor and propylenedioxythiophene or indacenodithiophene as a donor