Detection of brain shift in functional neurosurgery by deformation field analysis