A theoretical study of the conversion of gas phase methanediol to formaldehyde