Torsional dynamics of coaxial nanotubes with different lengths in viscoelastic medium