S-shaped current bistability in a bipolar resonant tunneling diode