Zero- and one-dimensional magnetic traps for quasiparticles in diluted magnetic semiconductors