Language Models Predict Empathy Gaps Between Social In-groups and Out-groups