Effect of Water Salinity and pH on the Wettability of a Model Substrate