Locally Controlling The Structure And Composition Of Atomically-Thin Films