Cognition and affect in the appraisal of events