Magnetic Properties of Ensembles of Carbon Nanotubes