Effect of Brine Composition on Wettability Alteration of Carbonate Rocks in the Presence of Polar Compounds