Stacking-dependent interlayer phonons in 3R and 2H MoS2