Spintronic terahertz emitter with integrated electromagnetic control