The influence of molecular geometry on photophysical properties and self-assembly of phthalimide end-capped thiophene-based organic molecules