Device for thermal decomposition of polymer wastes