Design criteria for distributed cogeneration plants