Understand produced water chemistry