Semiconductors and nanostructures-based sources of terahertz radiation