p —n Junctions in photosensitive pbs layers