Depth-dependent x-ray diffraction using extremely asymmetric reflections