The head direction cell network: attractor dynamics, integration within the navigation system, and three-dimensional properties