Carbon nanotubes and nanofibers in composite materials