Thermodynamic and kinetic study of the recovery of tungsten and cobalt from tool waste