Functionalized Carbon Nanotubes with Phosphorus- and Nitrogen-Containing Agents: Effective Reinforcer for Thermal, Mechanical, and Flame-Retardant Properties of Polystyrene Nanocomposites.