Design of polymer nanocomposites in solution by polymer functionalization.