Autonomous warfare: nations racing to acquire weapons that choose their own targets are ignoring the apocalyptic scenarios that can unfold when rivals catch up