A Two-Stage Mechanism for Demand Response Markets,