Optimal Endogenous Growth with Exhaustible Resources