IF-GUIDE: Influence Function-Guided Detoxification of LLMs