Analysis of the Effect of Magnetic Field on Solidification of Stainless Steel in Laser Surface Processing and Additive Manufacturing