Effects of Functionalization on Thermal Properties of Single-Wall and Multi-Wall Carbon Nanotube–Polymer Nanocomposites