Single spins in semiconductor nanowires