Band-gap transition induced by interlayer van der Waals interaction in MoS2