Distributed cogeneration: modeling of environmental benefits and impact