Effects of atomic structure on the frictional properties of amorphous carbon coatings