Water electrolysis using diamond thin-film electrodes