Production of formaldehyde by gas-phase pyrolysis of methanol