Numerical model and optimization strategy for the annealing process of 3D coil cores