Formation of compounds by metalloid ion implantation in iron