Effect of oligothiophene π-bridge length in D-π-A star-shaped small molecules on properties and photovoltaic performance in single-component and bulk heterojunction organic solar cells and photodetectors