On Matrices of Residues of the Impedance or Admittance Matrices of n Ports