Preparation of thiophene oligomers