Density functional theory and QT atoms-in-molecules study on the hydration of CuI and AgI ions and sulfides.