Thermomagnetic control of spintronic THz emission enabled by ferrimagnets