Ion-induced phase transition in thin Co films