Local engineering of topological phase in monolayer MoS2.