Effect of the Temperature on Wettability and Optimum Wetting Conditions for Maximum Oil Recovery in a Carbonate Reservoir System