Cooperation and conflict in ingroup and intergroup communication