Thermal treatments for the recovery of value added materials