Solution structure: defining polymer film morphology and optoelectronic device performance