Determination of low chemical oxygen demand using potentiometry and a modified Gran function