Microcavity single-photon-emitting diode