X-ray absorption fine structure for surface studies