Simulation of THz emission from laser interaction with plasmas