Transient terahertz spectroscopy of excitons and unbound carriers in quasi two-dimensional electron-hole gases