Integration of risk, flexibility, and resilience in the optimization of water–energy nexus | Synapse