Cognitive and affective processes in children's third-party punishment