Emitter quantization and double hysteresis in resonant-tunneling structures: A nonlinear model of charge oscillation and current bistability