MBA-RAG: a Bandit Approach for Adaptive Retrieval-Augmented Generation through Question Complexity