Ultrafast demagnetization of iron induced by optical versus terahertz pulses