Spin-active devices based on graphene/WSe2 heterostructures