Structural Constraints in Intergroup Relations: A Contextual Approach to Polarization and Conflict in Social Networks