Optimal configuration of polygeneration plants under process failure, supply chain uncertainties, and emissions policies