Forecast-based mechanisms for demand response