Terahertz generation by means of optical lasers