The impact of AI on warfare and the potential use of nuclear weapons