The power used and emissions created by technology giants are under scrutiny as the growth of AI increases electricity consumption.