Ring-closure reactions. 14. Kinetics of macrocyclization by the intramolecular acylation of thiophene and benzothiophene compounds