Vertical bipolar transistor in combination with resistors or capacitors