Optimal Charge-to-Spin Conversion in Graphene on Transition-Metal Dichalcogenides