Dimensionality-dependent type-II Weyl semimetal state in Mo0.25W0.75Te2