X-ray absorption fine structure for catalysts and surfaces