How artificial intelligence can help reduce carbon emissions