flow diagram of the refining process mines