AI raised concern over its tremendous consumption of water and power, but scientists are experimenting with ways AI can help people and businesses use energy more efficiently and pollute less.