Analyser for chemical oxygen demand