Atrial and ventricular fibrillation : mechanisms and device therapy