Autonomous Weapons and the Ethics of Artificial Intelligence