Semiconductor Device With Two Terminals