Chemical and thermal stability of carbyne-like structures in cluster-assembled carbon films