Three dimensional finite element model of electric fields in internal defibrillation