Joining of carbon-carbon composites by graphite formation