Existence and optimality of dynamic competitive equilibria with a non-renewable resource☆