How climate change drives heatwaves and wildfires