state the basic operating principle of an led