Processing of mercury-contaminated industrial wastes