From Bots to Brains: How AI Agents Are Transforming Automation Beyond RPA