Artificial intelligence has become the tech industry’s shiny new toy, but the creation of every new chatbot and image generator requires a lot of electricity, which means the technology may be responsible for a massive and growing amount of planet-warming carbon emissions.