Unified Demonstration Retriever for In-Context Learning