Endogenous growth, convexity of damages and climate risk