A comprehensive analysis of impedance of the electrochemical cell