Automatic reconstruction of cortico-striato-thalamo-cortical loops with application to obsessive-compulsive disorder