Analysis of x-ray absorption edge data on metal catalysts