Dependence of atomic oxygen resistance and the tribological properties on microstructures of WS2 films