Extraction of precious metals from waste