Strong isotopic effect in the electron-mediated nuclear-nuclear interaction in solids