Crossover of interface growth dynamics during corrosion and passivation