Social identity structures the effects of perspective taking