Prediction and projection of heatwaves