Spin valves as magnetically switchable spintronic THz emitters