Electromechanics in MoS2 and WS2: nanotubes vs. monolayers