process of mining and refining gold