Polymer electronics: molecular structure and device performance