extracting gold from ore and refining it