what is cadmium used for in gold mining