Correlation between stacking fault formation, allotropic phase transformations and magnetic properties of ball-milled cobalt