using diodes, e.g. as threshold elements