Mechanism of methanol formation