diodes only allow current flow in one direction