Van der Waals interactions and the properties of graphite and 2H-, 3R- and 1T-MoS2: A comparative study