Second harmonic generation as a technique to probe buried interfaces