X-ray powder diffraction from carbon nanotubes and nanoparticles.