Pressure-Induced Polymerization of Cyclic Molecules: A Study of Benzene and Thiophene