A three-terminal light emitting and detecting diode - Nature Electronics