Carbon-based hard films produced by high-temperature carbon-ion implantation