Electrical properties of light-emitting devices based on the II–VI compounds BeTe and BeMgZnSe