Property modulation of ternary copolymer via the diverse arrangements of two different repeating units for polymer solar cells and thin film transistors