An iterative approach to the synthesis of thiophene-based organic dyes