Large swathes of North America, Europe and China saw heatwaves and blistering temperatures that triggered public health warnings