how is gold extracted from the primary stage to tertiary stage