Kinetic control for planar oxidation of MoS$_2$