A study on electrochemical impedance spectroscopy