Understanding long-term river basin hydrology using isotopes in tree rings