An earthquake’s impact can be predicted – but only after it hits