An upscaled rate law for mineral dissolution in heterogeneous media: The role of time and length scales