processes involved in extracting gold from rocks