Designing magnetic anisotropy in ferrous alloys