Study of structure-property-performance relationships for organic thin-film transistors and polymeric solar cells