Optical second harmonic generation as a probe of interface composition and structure