A two-dimensional simulation of the isotopic composition of water vapor and methane in the upper atmosphere