AI is about to radically alter military command structures that haven’t changed much since Napoleon’s army