Mathematical modeling of constricted current flow to an electrode with a thermal resistance