Gelation in carbon nanotube/polymer composites