Petrochemical pyrolysis with shock waves