Direct characterization of terahertz radiation from the dynamics of the semiconductor surface field