Molecularly defined graphitic interface toward proton manipulation