Graphitization of thin carbon films