EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safety