Non-rigid registration of 3D ultrasound for neurosurgery using automatic feature detection and matching