Text this: A modular and flexible pipeline for intraoperative electrode reconstruction and localization in patients with brain lesions.