Electronic structures of WS2 armchair nanoribbons doped with transition metals