Spectrophotometric determination of pH by flow injection