Planning tool for polygeneration design in microgrids