Relationships between surface character and electrochemical processes on diamond electrodes: dual roles of surface termination and near-surface hydrogen