Ion implantation into metals and cabrides