Anodic and cathodic reactions on a chemically modified edge surface of graphite