Cognition and emotions in the brain during cooperative and competitive joined actions