Revealing the corrosion resistance of amorphous carbon films under heat shock via annealing