Surface chemistry of colloidal semiconductor nanoparticles on graphitic substrates