Potentiometric measurements of hydrogen and cyanide ions in buffered media