Cultivating compassion for distant others: the role of attention and empathy in prosocial learning from the effects of past decisions