Tunable terahertz quantum cascade lasers with an external cavity