Rapid assembly of carbon nanotube-based magnetic composites