Application of diamond thin-film electrodes for the electrochemical detection of trace metal ions