Modeling 13C discrimination in tree rings