A new approach to the theory of semimagnetic semiconductors