process of gold mining and refining