Molecular dynamics simulations of the interaction between the surfaces of polar solids and aqueous solutions