Systematic approach for the Synthesis of water and Energy networks