Oxygen and hydrogen isotope ratios in tree rings: how well do models predict observed values?