Crystal reorientation and plastic deformation of single-layer MoS2 and MoSe2 under uniaxial stress