Active Electrode IC for EEG and Electrical Impedance Tomography with Continuous monitoring of contact impedance