cost of mining and refining gold