Electron-spin polarization in magnetically modulated quantum structures