A multiscale model linking ion-channel molecular dynamics and electrostatics to the cardiac action potential