Advanced thermal treatment of auto shredder residue and refuse derived fuel