Optimal Mechanisms for Demand Response: An Indifference Set Approach