Opto-electronic properties of semiconductors and alkali halides