Molecular physics in ion-bridging effect for wettability alteration of rock surfaces