how is gold extracted from its ore