Transformations of electric networks by matrices : cases of invariant power, noninvariant power, and invariant input-impedance