how gold is extracted from its ore