Detection of minority-carrier traps using transient spectroscopy