Quantifying risks avoided by limiting global warming to 1.5 or 2 °C above pre-industrial levels