Acquisition and analysis of the impedance cardiogram (ICG) in the detection of ventricular arrhythmias