Nuclear war and the malicious use of AI could lead to the extinction of the human race by the end of this century, global experts have warned.