Optimal transition to backstop substitutes for nonrenewable resources