Modeling energy demand aggregators for residential consumers