Solutions for transients in arbitrarily branching cables: I. Voltage recording with a somatic shunt