What is the optimal timing for surgery in infective endocarditis with cerebrovascular complications?