Multi-scale modeling of cardiac arrhythmias