Characterization of semiconductor interfaces by x-ray diffraction