Element migration and phase distribution characteristics during crystallization of rare earth phase in rare earth slag