Ligand relaxation in copper- and silver-atom-doped alkali halides