Effects of a low-doped spacer layer in the emitter of a resonant tunneling diode