The mineral economy: a model for the shape of oil production curves