Assessing Emotions in Human-Robot Interaction Based on the Appraisal Theory