Relationship between phase and generation mechanisms of THz waves in InAs