How did nationalism start the war?