AI: A Double-Edged Sword for the Environment