InferEM: Inferring the Speaker's Intention for Empathetic Dialogue Generation