Green synthetic approaches to π-conjugated polymers for thin-film transistors and photovoltaic application