Reflected extended X-ray absorption fine structure study of the surface region of layered samples