A mathematical model of slag and metal flow in the ESR Process