Bipolar transistors in combination with diodes, or capacitors, or resistors