Terahertz Spin-to-Charge Current Conversion in Stacks of Ferromagnets and the Transition-Metal Dichalcogenide NbSe2