how gold is extracted from mines