Differential Reactivity at Edge and Terrace Sites of Transition Metal Dichalcogenides