Theory for carrier-induced ferromagnetism in diluted magnetic semiconductors