Atrial and ventricular pacing after open heart surgery