This AI model ‘studied’ physics — and learnt to forecast extreme weather