Open system modelling for U-series and ESR dating of teeth