Study of the intelligent textile electrode-skin interface using electrochemical impedance spectroscopy for medical applications