A model for the evolution of strontium and lead isotopes in a dynamic Earth