Spatial and temporal thermal management of a spintronic terahertz emitter | Synapse