Vegetation modulates the impact of climate extremes on gross primary production