Recovery of ammonium and phosphate using battery deionization in a background electrolyte