Deep-level transient spectroscopy of AlGaAs and CuInSe2