A study of the reaction mechanism in the gas-phase methylation of phenol: a comparison between acid and basic catalysis