Elucidating the mechanism of selective ion adsorption to the liquid water surface