Chemistry of Injection Water and Its Impact on Oil Recovery in Carbonate and Clastics Formations