Optimizing Water Chemistry for Enhanced Oil Recovery