MMed-RAG: Versatile Multimodal RAG System for Medical Vision Language Models