Application of a Technique of Separation of Variables to the Numerical Simulation of Electrophysiology