A self-consistent formulation of the double-exchange model