Reactions to Social Dilemmas as a Function of Group Identity, Rational Calculations, and Social Context