In-Depth Analysis of Emotion Recognition through Knowledge-Based Large Language Models