Artificial intelligence poses a greater challenge to the world than terrorism, top scientist warns