When performing electrical cardioversion for atrial fibrillation, the defibrillator should be set to which mode to avoid delivering a shock during the vulnerable period of the cardiac cycle?