Measuring the potential value of demand response using historical market data