Characterization of bipolar devices by steady state and modulated electroluminescence