Optimization of the Water–Energy–Carbon Nexus in the Residential Water Uses of Shanghai, China | Synapse