Corrosion-passivation processes in a cellular automata based simulation study