Exergetic and exergoeconomic analysis of a renewable polygeneration system and viability study for small isolated communities