Optimization of soft magnetic alloys in Fe–Co and Fe–Si systems