Gross world product and consumption in a global warming model with endogenous technological change