Algorithms are finding surprising new ways to make buildings smarter, help reduce emissions. But what happens when we factor in the carbon footprint of the AI itself?