High resolution studies of interfacial effects by small and large angle X-ray diffraction