Modeling the distribution of isotopic ratios in geochemical reservoirs