Consistent description of ion-specificity in bulk and at interfaces by solvent implicit simulations and mean-field theory