Thermomagnetic torques in dilute gases