Mechanical reliability of monolayer MoS2 and WSe2