Development of the theory of a self-consistent field for polyelectrolyte solutions