Structural Control of Functional Polymers for Photovoltaic Applications