Biphasic Waveforms for Ventricular Defibrillation: Optimization of Total Pulse and Second Phase Durations