Three-lead electronic semiconductor device with which is similar in characteristic to unijunction transistor except that it is programmable