EXAFS as a probe of atom-atom interaction potentials: AgI and CuI