Asymptotic ergodicity of the eigenvalues of random operators in the localized phase