Impact excitation of Er-doped GaAs and the rare-earth sites in III-V compound semiconductors