What was a result of militarism and nationalism in the late nineteenth and early twentieth centuries?