Climate extremes and the carbon cycle