The Carbon Value of Demand Flexibility