Modeling of electromagnetic, heat transfer, and fluid flow phenomena in an EM stirred melt during solidification