Injection and detection of a spin-polarized current in a light-emitting diode