how was gold extracted from gold ore