Embedding of shock wave reactor in thermal cracking process for ethylene