The Intelligent Evolution of DeFi: From Automation to AgentFi