Temperature-induced oligomerization of polycyclic aromatic hydrocarbons at ambient and high pressures