BJT as a current controlled electronic switch