Computer simulation of ventricular fibrillation and of defibrillating electric shocks