An automatic method for determining low-level concentrations of phosphates in fresh and saline waters