The formation of diamond-like carbon films due to molecular impacts on graphite