Self-sustaining cracking of hydrocarbons