Probing interfacial properties by optical second-harmonic generation