Which invention with military applications helped bring about the nation state