Integrating demand flexibility with distributed generation - Renewable energy sources (DG-RES) at the residential household and commercial customer level in electricity grids