Low-frequency dynamics of functional proteins studied by terahertz time-domain spectroscopy