A connection between linear and nonlinear resistor networks