using semiconducting elements having PN junctions