Thermochromic and Photovoltaic Properties of an Alternating Copolymer of Dithieno[3,2-b:2′,3′-d]thiophene and Thieno[3,4-c]pyrrole-4,6-dione