LongRAG: A Robust RAG Framework for Long-Context Question Answering