Formation of intermetallic layers at high intensity ion implantation