Inelastic processes in extended x-ray-absorption fine structure.