A random-walk theory of tarnishing reactions