Wettability Alteration For Carbonate And Sandstone Formations