Modeling carbon dioxide, pH, and un-ionized ammonia relationships in serial reuse systems