Excited-state laser spectroscopy of the impurities in III–V and II–VI semiconductors