Distribution and alignment of carbon nanotubes and nanofibrils in a polymer matrix