Dynamic Polarization of Electron Spins Interacting with Nuclei in Semiconductor Nanostructures.