Surface chemistry-controlled tribological behavior of silicon and diamond