Atomically-resolved interface imaging and terahertz emission measurements of gallium arsenide epilayers