Measurement of the grain-boundary states in semiconductors by deep-level transient spectroscopy.