An energy-time analysis of ventricular fibrillation and defibrillation thresholds with internal electrodes