Structural and mechanical properties of amorphous-carbon films produced by high-fluence metallic ion implantation into polyimide