two-terminal network synthesis