Nanoscale frictional behavior of graphene on SiO2and Ni(111) substrates