Synthesis of multicomponent nanocomposites containing filamentary carbon nanostructures