Simultaneous determination of chloride and pH in wastewaters by sequential injection analysis