Electrochemical oxidation and reduction processes at diamond electrodes of varying phase purity