Atrial and ventricular fibrillation: computational simulation of spiral waves in cardiac tissue