Demand response and distributed energy resources