A case study of a commercial/residential microgrid integrating cogeneration and electrical local users