Ab initio study on the surface chemistry and nanotribological properties of passivated diamond surfaces