Second harmonic generation at surfaces applied to corrosion inhibition