Quantum dots for terahertz generation