Diodes with bulk potential barrier