Sharp transition between two regimes of operation of dc discharge with two anodes and thermionic emission from cathode