Non-renewable resources and growth, the case of the oil: a simple endogenous model