Application of convergent beam electron diffraction to study the stacking of layers in transition-metal dichalcogenides