A solid state device that allows electrical energy to flow through in only one direction is called _________________.