Variable band gap conjugated polymers for optoelectronic and redox applications