Equilibrium theory of space charge layers in conjugated polymers I. Non-degenerate limit