Noise Resistance Applied to Corrosion Measurements I. Theoretical Analysis