EXAFS and XRD study of local dynamics in Cu2O and Ag2O