Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAG