An explanation of 13C/12C variations in tree rings