Impedance spectroscopy and its use in analyzing the steady-state AC response of solid and liquid electrolytes