Empathetic Response Generation with State Management