Effect of trace magnesium on carbide improvement in H13 steel