Effect of the π-linker on the performance of organic photovoltaic devices based on push–pull D–π–A molecules