Spins in semiconducting nanostructures