Mechanism of skeletal reactions of hydrocarbon on metals