Approach to iron corrosion via the numerical simulation of a galvanic cell