Frequency tuning of THz quantum cascade lasers