Structure-Property Relationships In Semiconducting Polymers And Small Molecules Probed By Synchrotron X-Ray Methods