An articulated neurosurgical navigation system using MRI and CT images