Determination of phosphorus in water