Influence of transverse compressive and axial tensile stress on the superconductivity of PbMo6S8 and SnMo6S8 wires