Vortex states in superconducting nanowires