Artificial Intelligence's Dual Impact on the Environment: Benefits and Challenges