Mechanism of thermolysis of diketene in the gas phase