Theoretical study of thermoelectric properties of MoS2