Magnetic states in prismatic core multishell nanowires.