Field-effect BJT: an adaptive and multifunctional nanoscale transistor