A Comparison of Independent and Joint Fine-tuning Strategies for Retrieval-Augmented Generation