The morality of nationalism