Separation of traces of palladium using mercury as collector