Simulation of transient electrochemical impedance spectroscopy due to water uptake or oxide growth