The psychodynamics of nationalism