Characterization of ion transport in thin films using electrochemical impedance spectroscopy