Positive and Negative Effects of Dopants toward Electrocatalytic Activity of MoS2 and WS2: Experiments and Theory