Role of excited states in the dynamics of excitons and their spins in diluted magnetic semiconductors