Donor–acceptor polymers with tunable infrared photoresponse