Time course of transmembrane voltage induced by time-varying electric fields—a method for theoretical analysis and its application