Disentanglement of rods in semidilute and liquid-crystalline solutions in elongational flow