Flow injection determination of chemical oxygen demand in leaching liquid