Topological insulator behavior of WS2 monolayer with square-octagon ring structure