Realizability of n-port resistive networks with 2n terminals