Resource depletion potentials from bottom-up models: Population dynamics and the Hubbert peak theory