FRAG: A Flexible Modular Framework for Retrieval-Augmented Generation based on Knowledge Graphs