Leveraging AI Agents for Autonomous Networks: A Reference Architecture and Empirical Studies