Fourier transform infrared spectroscopy approach for measurements of photoluminescence and electroluminescence in mid-infrared.