Inappropriate ventilation and hypoxemia as causes of cardiac arrhythmias