Magnetic and electronic properties of multiwall carbon nanotubes