Chaotic dynamics in a model of metal passivation