Tunable spin–orbit coupling and symmetry-protected edge states in graphene/WS2