Laser driven terahertz generation in hot plasma with step density profile