Thermal Transformation of Secondary Resources of Carbon-Rich Wastes into Valuable Industrial Applications