Modulation of electronic and thermal proprieties of TaMoS2 by controlling the repulsive interaction between Ta dopant atoms