When to Fine-Tune or Use RAG: Customizing Your LLM Effectively