having at least two p-n junctions