Determination of time delay between ventricles contraction using impedance measurements