Tunable spin-to-charge conversion across semiconductor–semimetal transition in large-area PtSe2 thin films | Synapse