Magnetic anisotropies of aligned carbon nanotubes.