Probing the proton excess at interfaces by second harmonic generation