how is gold extracted from ore