Simultaneous recovery of ammonium, potassium and magnesium from produced water by struvite precipitation