Electron diffraction study of inter- and intrapolytypic phase transitions in transition metal dichalcogenides. II. Shear transformations in TaS2, TaTe2, and NbTe2