Mechanism of catalysis of hydrocarbon reactions by platinum surfaces