Energy states of non-equilibrium electron-hole pairs in moderately doped semiconductors: Phase transition in the bound exciton system